
export default function check(fields: object) {
	Object.keys(fields).forEach((field) => {
		const value = fields[field];
		if (value === undefined) {
			throw new Error(`The value of field [${field}] could not be undefined! Do you mean null?`);
		}
	});
}
